package com.zmj.sy.mom.srv.aps.bean.entity.mes;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Getter
@Setter
@TableName("tb_mes_plate_pick")
public class WmsPlatePick extends BaseEntity {

    private Integer plateId;

    private Integer nestPlateId;

    @Comment("领料单编号")
    private String pickingListNo;

    @Comment("计划日期")
    private LocalDate planDate;

    @Comment("分包编号")
    private String packageSn;

    @Comment("领料单发送时间")
    private LocalDateTime receiveDate;

    @Comment("希望送货日期")
    private LocalDateTime wantDeliverDate;

    @Comment("计划开始日期")
    private LocalDateTime plannedStartTime;

    @Comment("钢板类型：1=钢板，2=余料，3=外委件")
    private Integer type;

    @Comment("领料状态: 1待打包 2已领料未下发 3已领料已下发 4已出库 5已开工 6已报工")
    private Integer plateState;

    @Comment("堆垛位置")
    private String storagePlace;

    @Comment("层号")
    private Integer seq;

    @Comment("领料顺序")
    private Integer pickListItem;

    @Comment("数量")
    private Integer amount;

    @Comment("长度")
    private BigDecimal length;

    @Comment("宽度")
    private BigDecimal width;

    @Comment("钢板重 mes返回")
    private BigDecimal plateWeight;

    @Comment("余料重量")
    private BigDecimal cloutWeight;

    @Comment("钢板利用率")
    private BigDecimal plateUsage;

    @Comment("套料地址")
    private String nesting;

    @Comment("物料号")
    private String materialId;

    @Comment("下道工位")
    private String nextWorkPlace;

    @Comment("出库时间")
    private LocalDateTime outTime;

    @Comment("钢板规格")
    private String materialCode;

    @Comment("钢板名称")
    private String materName;

    @Comment("钢板材质")
    private String plateMaterial;

    @Comment("是否插单: 1插单  0 正常")
    private Integer fastFlag;

    @Comment("钢板厚度")
    private String plateThick;

    @Comment("钢板备注")
    private String plateNote;

    @Comment("领料人ID")
    private Integer pickUserId;

    @Comment("领料人名称")
    private String pickUserName;

    @Comment("领料时间")
    private LocalDateTime pickDateTime;

    @Comment("套料图号 切割编号")
    private String nestId;

    @Comment("领料单ID")
    private Integer pickId;

}
